﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace todo.EntityFramework.Entities
{
    /// <summary>
    /// 
    ///</summary>
    [SugarTable("do_books")]
    public class DoBooks
    {
        /// <summary>
        ///  
        ///</summary>
         [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true  )]
         public int Id { get; set; }
        /// <summary>
        /// 书名 
        ///</summary>
         [SugarColumn(ColumnName="name"    )]
         public string Name { get; set; }
        /// <summary>
        /// 类型，多个标签 
        ///</summary>
         [SugarColumn(ColumnName="type"    )]
         public string Type { get; set; }
        /// <summary>
        /// 豆瓣地址 
        ///</summary>
         [SugarColumn(ColumnName="url"    )]
         public string Url { get; set; }
        /// <summary>
        /// 评分 
        ///</summary>
         [SugarColumn(ColumnName="socre"    )]
         public decimal? Socre { get; set; }
        /// <summary>
        /// 作者 
        ///</summary>
         [SugarColumn(ColumnName="author"    )]
         public string Author { get; set; }
        /// <summary>
        /// 页数 
        ///</summary>
         [SugarColumn(ColumnName="pages"    )]
         public int? Pages { get; set; }
        /// <summary>
        /// ISBN 
        ///</summary>
         [SugarColumn(ColumnName="isbn"    )]
         public string Isbn { get; set; }
        /// <summary>
        /// 下载地址 
        ///</summary>
         [SugarColumn(ColumnName="file"    )]
         public string File { get; set; }
        /// <summary>
        /// 内容简介 
        ///</summary>
         [SugarColumn(ColumnName="content_validity"    )]
         public string ContentValidity { get; set; }
        /// <summary>
        /// 是否完成 
        /// 默认值: b'0'
        ///</summary>
         [SugarColumn(ColumnName="is_finish"    )]
         public bool IsFinish { get; set; }
        /// <summary>
        /// 是否显示 
        /// 默认值: b'1'
        ///</summary>
         [SugarColumn(ColumnName="is_show"    )]
         public bool IsShow { get; set; }
        /// <summary>
        /// 添加书籍的用户ID 
        ///</summary>
         [SugarColumn(ColumnName="user_id"    )]
         public int? UserId { get; set; }
    }
}
